<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){		
		$map['state'] = 1;
        $this->news = M('News')->where($map)->order('addtime desc')->Select();
        $this->mood = M('Mood')->where($map)->order('addtime desc')->Select();
        $this->photo = M('Photo')->where($map)->order('addtime desc')->Select();
        $this->display();
    }

}